-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add TFLite Micro examples #8379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TFLite Micro examples #8379
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sanketwadekar thanks for adding the Arduino library. Couple of comments, and it should be good to go.
libraries/TFLiteMicro/src/utility.h
Outdated
@@ -0,0 +1,10 @@ | |||
/* | |||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the license year to 2023 wherever applicable.
libraries/TFLiteMicro/src/utility.h
Outdated
#include <utility> | ||
/* | ||
The example sketches include "tensorflow/lite/micro/micro_interpreter.h" which internally include "utility.h" header file when compiling examples for Arduino (when -DARDUINO flag is passed to the compiler). This header file does not exist in esp32-arduino core. Hence, keeping this file here as a workaround and including an alternate header file. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a new line, do check for other files as well.
-128, -128, -128, -128, -128, -128, -128, -128, -128, -128, -128, -128, | ||
-128, -128, -128, -128, -128, -128, -128, -128, -128, -128, -128, -128, | ||
-128, -128, -128, -128, -128, -128, -128, -128, -128, -128, -128, -128, | ||
-128, -128, -128, -128, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although these files are present in original sources, these are not used here. Please remove these.
|
||
#include "no_micro_features_data.h" | ||
|
||
// Golden test values for the expected spectrogram from a "no" sample file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this file as well. Not used anymore.
bee99c1
to
876bfd9
Compare
please target the |
@sanketwadekar CI is failing:
|
This file is not yet present in esp32-arduino. It will be copied by the lib-builder. |
@sanketwadekar please pull the latest changes from the target branch. TFLite is merged and we can see if CI will pass |
@me-no-dev this will require lib-builder release to happen first, right? |
Starting with IDF-v5.1 we build and get the libs in a different way. I have already added TFLite to the libs for 5.1 and have updated the branch. @sanketwadekar needs to pull all changes from that branch and that will trigger CI to re-run the tests with TFLite available. |
…ino-esp32 into examples/tflite-micro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected on ESP32-DevKitC
Closing in favor of: #8717 |
Description of Change
Added TFLite Micro examples.
Depends on espressif/esp32-arduino-lib-builder#128
Tests scenarios
I have tested these examples on ESP-EYE.
cc:@vikramdattu